# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-aiohttp-debugtoolbar
_pkgname=aiohttp-debugtoolbar
pkgver=0.6.1
pkgrel=1
pkgdesc="A library for debugtoolbar support for aiohttp"
url="https://github.com/aio-libs/aiohttp-debugtoolbar"
arch="noarch"
license="Apache-2.0"
depends="py3-aiohttp py3-aiohttp-jinja2 python3"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-pytest-aiohttp
	py3-pytest-asyncio
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-debugtoolbar/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # deprecation warnings

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
0c46fbe35f8d7d49130ca6f7e2378fc486a821fd08b99c71c37dbc70d83b0c891cedaa7a6022726a74e02be398b669f8b50896d0a868b0915a4384648d03e8eb  py3-aiohttp-debugtoolbar-0.6.1.tar.gz
"
